/**********************************************************************************
 * Code license:  GNU General Public License v3                                   *
 * Main page:     https://code.google.com/p/library-cross-platform/               *
 * Issue tracker: https://code.google.com/p/library-cross-platform/issues/list    *
***********************************************************************************/

package library.ui;

public class RadioButtonElement extends Element
{
  protected boolean state = false;
  protected String  text  = "";
  
  public RadioButtonElement() {
    super(RADIOBUTTON_TYPE);
  }

  public RadioButtonElement(String text, boolean state) {
    super(RADIOBUTTON_TYPE);
    this.text  = text;
    this.state = state;
  }

  public RadioButtonElement(String text) {
    super(RADIOBUTTON_TYPE);
    this.text  = text;
  }

  public void setText(String text) {
    this.text = text;
  }

  public String getText() {
    return text;
  }
  
  public String toString() {
    return text;
  }

  public void setState(boolean state) {
    this.state = state;
  }
  
  public boolean getState() {
    return state;
  }
}